package com.zt.bigdata.spark.scala.chapter10

/**
  *
  */
case class A1(var a1: Int,
              var a2: Int,
              var a3: Int,
              var a4: Int,
              var a5: Int,
              var a6: Int,
              var a7: Int,
              var a8: Int,
              var a9: Int,
              var a10: Int,
              var a11: Int,
              var a12: Int,
              var a13: Int,
              var a14: Int,
              var a15: Int,
              var a16: Int,
              var a17: Int,
              var a18: Int,
              var a19: Int,
              var a20: Int,
              var a21: Int,
              var a22: Int,
              var a23: Int,
              var a24: Int,
              var a25: Int,
              var a26: Int,
              var a27: Int,
              var a28: Int,
              var a29: Int,
              var a30: Int
             )

case class A2(val a: Int)

object ddd {
  def main(args: Array[String]): Unit = {
    val a = A2(1)
    val a2 = A2(1)

    assert(a == a2) //比较值相等
    assert(a.equals(a2)) //比较值相等
    assert(!a.eq(a2)) //比较对象相等


    val obj = null
    assert(null == obj)

  }
}
